<!-- TAG 읽기 대기화면 -->
<!DOCTYPE html>
<html>
<head>
    <title>S-Pet Read Waiting Page(v0.3)</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
     name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
	<link href="/lib/jquery.mobile-1.3.2.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="/lib/jquery-2.0.3.js"></script>
	<script type="text/javascript" src="/lib/jquery.mobile-1.3.2.js"></script>
</head>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" data-add-back-btn="true">
            <h1>Log View</h1>
        </div>
        <div data-role="content">
            <ul data-role="listview" data-inset="true">
                <li data-role="list-divider">[User View] Read 대기화면 (Tag를 아래 클릭으로 대체)</li>

	<% if(data.length==0){ %>
	<tr>
		<td colspan="3" align="center">기록이 없습니다.</td>
	</tr>
	<% }else{
		for(var i=data.length-1; i >= 0; i--){ %>

                <li>
                    <a href="/readview?i=<%= data[i].pid %>&<%= data[i].qs %>">
                        <h3>[<%= i+1 %>] <%= data[i].pid %></h3>
                        <p><%= data[i].qs %></p>
                    </a>
                </li>
	<% }
	} %>
                <li data-role="list-divider">Divider</li>
                <li>
                    <a href="#">
                        <h3>[No.] Primary Key</h3>
                        <p>(NFC Tag NDEF)</p>
                    </a>
                </li>
            </ul>
        </div>
	<h4><a href="/">Main</a></h4>
	<h4><a href="/log/clear">[로그 삭제]</a></h4>
    </div>
</body>
</html>